import request from '@/utils/request'

// 查询帮扶情况列表
export function listBfRecord(query) {
  return request({
    url: '/event/bfRecord/list',
    method: 'get',
    params: query
  })
}

export function queryBfRecord(query) {
  return request({
    url: '/event/bfRecord/query',
    method: 'post',
    data: query
  })
}

// 查询帮扶情况详细
export function getBfRecord(bfRecordId) {
  return request({
    url: '/event/bfRecord/' + bfRecordId,
    method: 'get'
  })
}

// 新增帮扶情况
export function addBfRecord(data) {
  return request({
    url: '/event/bfRecord',
    method: 'post',
    data: data
  })
}

// 修改帮扶情况
export function updateBfRecord(data) {
  return request({
    url: '/event/bfRecord',
    method: 'put',
    data: data
  })
}

// 删除帮扶情况
export function delBfRecord(bfRecordId) {
  return request({
    url: '/event/bfRecord/' + bfRecordId,
    method: 'delete'
  })
}
